package com.rockbb.common.simpleframe.result;

public class ActionResult {

	public static final int TYPE_FREEMARKER = 0;
	public static final int TYPE_JSON = 1;
	public static final int TYPE_RAW = 2;
	public static final int TYPE_REDIRECT = 3;
	public static final int TYPE_STREAM = 4;

	public static final String MAP_KEY_I18N = "L";

	public static final String MAP_RESULT_NAMESPACE		= "sf_";
	public static final String MAP_KEY_CONFIGS				= MAP_RESULT_NAMESPACE+"configs";
	public static final String MAP_KEY_LANGUAGE 					= MAP_RESULT_NAMESPACE+"language";
	public static final String MAP_KEY_STYLE 					= MAP_RESULT_NAMESPACE+"style";
	public static final String MAP_KEY_JSON 					= MAP_RESULT_NAMESPACE+"json";
	public static final String MAP_KEY_JSON_CALLBACK	= MAP_RESULT_NAMESPACE+"json_callback";
	public static final String MAP_KEY_RAW 						= MAP_RESULT_NAMESPACE+"raw";
	public static final String MAP_KEY_REDIRECT 				= MAP_RESULT_NAMESPACE+"redirect";
	public static final String MAP_KEY_STREAM 				= MAP_RESULT_NAMESPACE+"stream";
	public static final String MAP_KEY_STREAM_TYPE 			= MAP_RESULT_NAMESPACE+"stream_type";
	public static final String MAP_KEY_STREAM_DISPOSITION	= MAP_RESULT_NAMESPACE+"stream_disposition";
	public static final String MAP_KEY_STREAM_FILENAME	= MAP_RESULT_NAMESPACE+"stream_filename";

	public static final String MAP_SESSION_NAMESPACE 	= "se_";
	public static final String MAP_KEY_SESSION 				= MAP_SESSION_NAMESPACE +"session";
	public static final String MAP_KEY_SESSIONUSER 		= MAP_SESSION_NAMESPACE +"sessionuser";
	public static final String MAP_KEY_SUPERSESSION 	= MAP_SESSION_NAMESPACE +"supersession";
	public static final String MAP_KEY_PAGE 					= MAP_SESSION_NAMESPACE +"page";
	public static final String MAP_KEY_CSS 						= MAP_SESSION_NAMESPACE +"css";
	public static final String MAP_KEY_JS 							= MAP_SESSION_NAMESPACE +"js";
	public static final String MAP_KEY_NAVS 					= MAP_SESSION_NAMESPACE +"navigations";
	public static final String MAP_KEY_CURRENT_NAV 		= MAP_SESSION_NAMESPACE +"current_nav";
	public static final String MAP_KEY_FIELD_ERRORS 		= MAP_SESSION_NAMESPACE +"field_errors";
	public static final String MAP_KEY_HIDDEN_FIELDS 	= MAP_SESSION_NAMESPACE +"hidden_fields";

	private String name;
	private int type;
	private String value;

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
}
